package com.annhoa.util.attempt;

import static spark.Spark.*;

/**
 * @Author annhoa
 * @Date 2018/10/29 16 29
 * @Description
 */
public class SparkUtil {

    public static void main(String[] args) {
        port(8080); // 默认端口4567
        get("/say/*/to/*", (request, response) -> {
            return "Number of splat parameters: " + request.splat().length + "response:" + request;
        });
        get("/say/good", (request, response) -> {
            return request.params();
        });
    }

}
